﻿using System;
using System.Collections.Generic;
using LB.Server.DAL.DomainEntitites;
using User = LB.Server.DAL.DomainEntitites.User;

namespace LB.Server.DAL
{
    public interface IUserRepository
    {
        WorkingSession CreateSession(string sessionId, int userId, DateTime startTime, TimeSpan sessionDuration);
        bool ProlongateSession(string sessionId, TimeSpan duration);
        bool CloseSession(string sessionId);

        WorkingSession IsSessionExist(string sessionId);

        List<WorkingSession> GetWorkingSessionsByUserId(int userId);

        bool IsLoginExist(string userName);

        bool CreateAccount(string login, string password);
        User GetUserBylogin(string login);
    }
}